<!doctype html>
<html ng-app="FilterInControllerModule">
<head>
    <script src="../lib/angular-1.3.0.js"></script>
    <script src="../js/controller/20180426_Filter.js"></script>
    <meta charset="utf-8"/>
</head>
<body>
<!--<p>使用系统给定的过滤器进行过滤</p>-->
<!--<div ng-controller="FilterController as ctrl">-->
    <!--<div>-->
        <!--All entries:-->
        <!--<span ng-repeat="entry in ctrl.array">{{entry.name}} </span>-->
    <!--</div>-->
    <!--<div>-->
        <!--Entries that contain an "a":-->
        <!--<span ng-repeat="entry in ctrl.filteredArray">{{entry.name}} </span>-->
    <!--</div>-->

    <!--<p>字符串数组</p>-->
    <!--<div ng-repeat="w in ctrl.array2">-->
        <!--{{w}}-->
    <!--</div>-->

    <!--<p>过滤的字符串数组</p>-->
    <!--<div ng-repeat="w in ctrl.filteredArray2">-->
        <!--{{w}}-->
    <!--</div>-->

    <!--<p>页面直接使用过滤器过滤</p>-->
    <!--<div ng-repeat="word in ctrl.array2|filter:'s'">-->
        <!--{{word}}-->
    <!--</div>-->

<!--</div>-->

<p>使用自定义过滤器</p>
<div ng-controller="UseSelfDefinedFilterController">
    <div ng-repeat="w in myArray">
        {{w|limitLen}}
    </div>
</div>

</body>
</html>